using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace MMYY.Web
{
    public partial class maxapi : System.Web.UI.Page
    {
        public string site;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                site = ddlTargetSite.SelectedValue;
                BLL.Type t = new MMYY.BLL.Type();
                this.ddlClass.DataSource = t.Get(0);
                this.ddlClass.DataBind();
            }
        }

        protected void ddlTargetSite_SelectedIndexChanged(object sender, EventArgs e)
        {
            site = ddlTargetSite.SelectedValue;
            ControlCollection ctls = this.Controls;
            foreach (Control c in ctls)
            {
                if (c.GetType().Name == "Panel") c.Visible = false;
            }
            switch (site)
            {
                case "qire123.com":
                    this.panQire123.Visible = true;
                    break;
                case "yiyi.cc":
                    this.divYiYi.Attributes.Add("display", "block");
                    break;
            }
        }

        protected void btnSingleOK_Click(object sender, EventArgs e)
        {

        }
    }
}
